<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::any('/', 'Home\IndexController@index');

Route::get('fyback/login','Admin\LoginController@index');
Route::post('fyback/log', 'Admin\LoginController@log');

Route::group(['namespace'=>'Admin','prefix'=>'fyback','middleware'=>['iflogin','ifnode']],function(){
	Route::get('/','IndexController@index');
	Route::post('administrator/status/id/{id}', 'AdministratorController@status', function($id){})->where(['id'=>'[0-9]+']);
	Route::resource('administrator', 'AdministratorController');
	Route::resource('role', 'RoleController');
	Route::post('power/status/id/{id}', 'PowerController@status', function($id){})->where(['id'=>'[0-9]+']);
	Route::resource('power', 'PowerController');
	Route::group(['namespace' => 'Seekies', 'prefix'=>'seekies'], function(){
        Route::resource('seekies', 'SeekiessController');
    });
});
